package com.guofen.dao;

import com.guofen.pojo.SjqFlocculationProduceMaintenanceMonth;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqFlocculationProduceMaintenanceMonthMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqFlocculationProduceMaintenanceMonth record);

    int insertSelective(SjqFlocculationProduceMaintenanceMonth record);

    SjqFlocculationProduceMaintenanceMonth selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SjqFlocculationProduceMaintenanceMonth record);

    int updateByPrimaryKey(SjqFlocculationProduceMaintenanceMonth record);

    SjqFlocculationProduceMaintenanceMonth getlatest(@Param("equipment_name") String equipment_name, @Param("maintenance_content") String maintenance_content);

    List<SjqFlocculationProduceMaintenanceMonth> getOperatorList(String equipName);

    List<SjqFlocculationProduceMaintenanceMonth> getExaminerList(String equipName);

    List<SjqFlocculationProduceMaintenanceMonth> getlastByName(String equipmentName);

    List<SjqFlocculationProduceMaintenanceMonth> getMonthRecords(String equipmentName);

    List<SjqFlocculationProduceMaintenanceMonth> selectAll();

    List<SjqFlocculationProduceMaintenanceMonth> selectByDate(@Param("startDate") String startDate,
                                                   @Param("endDate") String endDate);
}